<?php

class NewsPeer extends BaseNewsPeer
{
	public static function getRecentNews()
	{
		$c = new Criteria();

		$c->add(self::ARCHIVE,0);
		$c->addDescendingOrderByColumn(self::STICKY);
		$c->addDescendingOrderByColumn(self::CREATED_AT);

		return self::doSelect($c);
	}

	public static function getOldNews()
	{
		$c = new Criteria();

		$c->add(self::ARCHIVE,1);
		$c->addDescendingOrderByColumn(self::CREATED_AT);

		return self::doSelect($c);
	}

}
